import request from '@/utils/request'

export function getClubType(data) {
  return request({
    url: '/api/club_type/',
    method: 'get',
    params: data
  })
}

export function updateClubType(id, data) {
  return request({
    url: '/api/club_type/' + id + '/',
    method: 'patch',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

export function createClubType(data) {
  return request({
    url: '/api/club_type/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

